package com.atguigu.eduService.service;

import com.atguigu.eduService.entity.EduCourse;
import com.atguigu.eduService.vo.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Chen Wen bo
 * @since 2021-07-22
 */
public interface EduCourseService extends IService<EduCourse> {

    String addCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo getPublishCourseInfo(String id);

    void publishCourse(String id);

    IPage<EduCourse> getCoursePageList(Long current, Long size, CourseQueryVo courseQueryVo);

    void deleteCourse(String courseId);

    Map<String, Object> index();


    Map<String, Object> getCourseFrontList(Long page, Long limit, CourseFrontVo courseFrontVo);

    CourseWebVo getCourseFrontInfo(String courseId);
}
